package org.jeecg.modules.business.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: bus_agreement_order_fee
 * @Author: jeecg-boot
 * @Date:   2023-05-15
 * @Version: V1.0
 */
@Data
@TableName("bus_agreement_order_fee")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bus_agreement_order_fee对象", description="bus_agreement_order_fee")
public class BusAgreementOrderFee implements Serializable {
    private static final long serialVersionUID = 1L;

	/**key*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "key")
    private String id;
	/**协议单位id*/
	@Excel(name = "协议单位id", width = 15)
    @ApiModelProperty(value = "协议单位id")
    private String agreementUnitId;
	/**关联的账单id*/
	@Excel(name = "关联的账单id", width = 15)
    @ApiModelProperty(value = "关联的账单id")
    private String orderFeeId;
	/**结账状态，1未结账；2已结账*/
	@Excel(name = "结账状态，1未结账；2已结账", width = 15)
    @ApiModelProperty(value = "结账状态，1未结账；2已结账")
    private Integer settleStatus;
	/**创建用户*/
	@Excel(name = "创建用户", width = 15)
    @ApiModelProperty(value = "创建用户")
    private String createUserId;
	/**创建时间*/
	@Excel(name = "创建时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;
	/**结账时间*/
	@Excel(name = "结账时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "结账时间")
    private Date settleTime;

    /**项目名称*/
    @Excel(name = "项目名称", width = 15)
    @ApiModelProperty(value = "项目名称")
    private java.lang.String projectName;
    /**订单号*/
    @Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单号")
    private java.lang.String orderNo;
    /**类型(1-收款；2-退款)*/
    @Excel(name = "类型(1-收款；2-退款)", width = 15)
    @ApiModelProperty(value = "类型(1-收款；2-退款)")
    private java.lang.Integer type;
    /**金额*/
    @Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private java.math.BigDecimal payPrice;
    /**支付方式*/
    @Excel(name = "支付方式", width = 15)
    @Dict(dictTable = "bus_room_pay_type_info", dicCode = "id", dicText = "name")
    @ApiModelProperty(value = "支付方式")
    private java.lang.String payType;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remarks;
    /**终端号*/
    @Excel(name = "终端号", width = 15)
    @ApiModelProperty(value = "终端号")
    private java.lang.String terminalTrace;
    /**状态(0-未结算；1-已结算)*/
    @Excel(name = "状态(0-未结算；1-已结算)", width = 15)
    @ApiModelProperty(value = "状态(0-未结算；1-已结算)")
    private java.lang.Integer status;
    /**类目*/
    @Excel(name = "类目", width = 15)
    @ApiModelProperty(value = "类目")
    @Dict(dictTable = "ces_stock_type", dicCode = "id", dicText = "name")
    private java.lang.String categoryId;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;

    private transient List<BusCommodityRecord> commodityRecords;
    private transient String guest;

    /**关联的结算账单id*/
    @Excel(name = "关联的结算账单id", width = 15)
    @ApiModelProperty(value = "关联的结算账单id")
    private String settlementOrderFeeId;

    /**删除状态(0-正常,1-已删除)*/
    @Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
    @TableLogic
    private Integer delFlag;
}
